# -*- coding: utf-8 -*-
# @Time    : 2022/8/19 10:18
# @Author  : zhongxin
# @Email   : 490336534@qq.com
# @File    : urls.py
from django.urls import path, include
from rest_framework.routers import DefaultRouter

from . import views

router = DefaultRouter()
router.register('', views.UserViewSet)

urlpatterns = [
    path('register/', views.UserRegisterView.as_view(), name='register'),
    path('login/', views.LoginView.as_view()),
    path('', include(router.urls))
]
